package com.znn.dagger2demo.component;

import com.znn.dagger2demo.MainActivity;
import com.znn.dagger2demo.module.MainActivityModule;
import com.znn.dagger2demo.util.ActivityScoped;

import dagger.Component;

/**
 * @author RANDY.ZHANG
 * @version 1.0
 * @company:
 * @date 16/8/9 12:08
 */
@Component(modules = MainActivityModule.class, dependencies = ApplicationComponent.class)
@ActivityScoped
public interface MainActivityComponent {
    //这个函数将在生成的代码中进行实现,来对被注入的值进行赋值(注入)
    void inject(MainActivity mainActivity);
}